<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/4/20
 * Time: 15:44
 * 管理员模型
 */
namespace app\admin\model;

use think\Model;

class Operator extends Model
{
    /**
     * @todo 修改密码
     * @param $uid 用户id
     * @param $password 用户密码
     * @param $salt 密码加密盐值
     */
    public function updatePassword($uid, $password, $salt)
    {
        return $this->where("id", $uid)->update(['password' => $password, 'salt' => $salt]);
    }

}